// 导入静态路由表
import { constantRoutes } from '@/router'

// 路由信息
export default {
  namespaced: true,
  state: {
    routes: () => {
      return constantRoutes
    }
  },
  mutations: {
    setRoutes(state, asyncRoutes) {
      state.routes = [...constantRoutes, ...asyncRoutes]
    }
  }

}
